* {
    margin: 0;
    padding: 0;
}
.w {
    width: 1225px;
    margin: 0 auto;
}
body {
    background-color: #fff;
}
li {
    list-style: none;
}
a {
    text-decoration: none;
}
@font-face {
    font-family: 'MyFont';
    src: url('../../font/No.242-上首海浪体.ttf') format('woff');
  } 

  /**头部区域
  */
.header {
    height: 30px;
    background-color: #f1f1f1;
    width: 100%;
    /* 注意此地方会层叠 w 里面的margin */
    
}
.topnav{
    background-color: #f1f1f1;
    width: 1225px;
    margin: 0 auto;
}
.title {
    float: left;
    font-size: 12px;
    height: 20px;
    width: 180px;
    line-height: 30px;
    margin-left: 15px;
    color: #666666;
}
.nav {
    float: left;
    margin-left: 320px;
}
.nav ul li {
    float: left;
    margin: 0 10px;
}
.nav ul li a {
    display: block;
    height: 28px;
    padding: 0 10px;
    line-height: 28px;
    font-size: 12px;
    color: #666666;   
}
.nav ul li a:hover {
    border-bottom:  solid #b1191a;
    color: #b1191a;
}
.user {
    float: right;
    line-height: 30px;
    margin-right: 30px;
    font-size: 12px;
    color: #666666;
}
.user img{
    width: 25px;
    height: 25px;
}

 /**搜索区域
  */
.top{
    height: 100px;
    background-color: #fff;
}
.topic{
    float: left;
    height: 100px;
    line-height: 100px;
    font-size: 35px;
    color: #b1191a;
    font-weight: 500px;
    margin-left: 5px;
    font-family: 'MyFont', sans-serif;
}
.topic span{
    font-size: 15px;
    color: #333333;
}
.search-box{
    float: left;
   height: 80px;
   width: 680px;
   margin-left: 50px;
   margin-top: 5px;
   padding: 10px;
}
.search{
   height: 50px;
   line-height: 50px;
   margin-top: 15px;
}
.search input{
    height: 40px;
    width: 78%;
   line-height: 40px;
   font-size: 16px;
   outline: none;
   color:#333;
   border: 2px solid #b1191a;
   border-right: none;
   padding-left: 10px;
   display: inline-block;
   margin-right: -5px;
   vertical-align: middle;
}
.search button{
    height: 40px;
    width: 70px;
    background-color: #b1191a;
    font-size: 14px;
    color: #FFF;
    border: none;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}
.search span{
    width: 20px;
}
.search span a{
    color: #666666;
    font-size: 14px;
}
.hotword{
    margin-left: 2px;
    margin-top: -5px;
}
.hotword a{
    color: #666666; 
    font-size: 10px;
}

.hotword a:hover{
    border-bottom: 1px solid #b1191a;
    color: #b1191a;
}

/**  中间模块*/

.banner {
    margin-top: 5px;
    height: 421px;
    background-color: #fff;
    background: url(../../images/login.svg) no-repeat top center;
}
.banner .w {
    height: 421px;
    /* background: url(images/banner2.png) no-repeat top center; */
}
.subnav {
    float: left;
    width: 190px;
    height: 421px;
    background-color: #fff;
}
.subnav ul li {
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
}
.subnav ul li a {
    font-weight: 400px;
    font-size: 14px;
    color: #666;
}
.subnav ul li a span {
    float: right;
}
.subnav ul li a:hover {
    color: #b1191a;
    border-bottom:  solid #b1191a;
}
.cart {
    float: right;
    width: 230px;
    height: 300px;
    background-color: #fff;
    /* 浮动的盒子不会有外边距合并的问题 */
    margin-top: 50px;
}
.cart h2 {
    height: 48px;
    background-color: #b1191a;
    text-align: center;
    line-height: 48px;
    font-size: 18px;
    color: #fff;
}
.bd {
    padding: 0 20px;
}
.bd ul li {
    padding: 14px 0;
    border-bottom: 1px solid #ccc;
}
.bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}
.bd ul li p {
    font-size: 12px;
    color: #a5a5a5;
}
.bd .more {
    display: block;
    height: 38px;
    border: 1px solid #b1191a;
    margin-top: 5px;
    text-align: center;
    line-height: 38px;
    color: #b1191a;
    font-size: 16px;
    font-weight: 700;
}

/** 书籍推荐*/
.box {
    margin-top: 20px;
    
}
.box-hd {
    height: 45px;
}
.box-hd h3 {
    float: left;
    font-size: 20px;
    color: #494949;
    margin-left: 30px;
}
.box-hd a {
    float: right;
    font-size: 12px;
    color: #a5a5a5;
    margin-top: 10px;
    margin-right: 30px;
}
.clearfix:before,.clearfix:after {
    content:"";
    display:table; 
  }
  .clearfix:after {
    clear:both;
  }
  .clearfix {
     *zoom:1;
  }
  .clearfix li{
    cursor: pointer;
  }

.box-bd{
    margin: 20px 0;
}
/* 把li 的父亲ul 修改的足够宽一行能装开5个盒子就不会换行了 */
.box-bd ul {
    width: 1150px;
    margin-left: 40px;
}
.box-bd ul li {
    float: left;
    width: 200px;
    height: 350px;
    background-color: #fff;
    margin-right: 30px;
    margin-bottom: 15px;  
}
.box-bd ul li img {
    width: 100%;
    height: 220px;
}
.box-bd ul li h4 {
    margin: 20px 20px 20px 25px;
    font-size: 14px;
    color: #050505;
    font-weight: 400;
}
.box-bd .info {
    margin: 0 20px 0 25px;
    font-size: 12px;
    color: #999;
}
.box-bd .info span {
    color: #b1191a;
}
/* footer 模块 */
.footer {
    height: 100px;
    background-color: #f1f1f1;
    padding-top: 20px;
}
.mod_copyright {
    text-align: center;
    padding-top: 20px;
}
.links {
    margin-bottom: 15px;
    font-size: 12px;
}
.links a {
    margin: 0 3px;
    font-size: 12px;
    color: #b1191a;
}
.copyright {
    line-height: 20px;
    font-size: 12px;
}





